-- GENERATED SPELL FOR [Raging Owlbeast] --


function spell0_7451(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_7451', 655, 1)
end

function spell1_7451(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7451', 15000, 1)
end

function Sorts_7451(pUnit, Event)
local choix_sorts_7451 = math.random(0, 1)
if choix_sorts_7451 == 0 then
pUnit:RegisterEvent('spell0_7451', 1, 1)
end
if choix_sorts_7451 == 1 then
pUnit:RegisterEvent('spell1_7451', 1, 1)
end
end

function mob7451_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7451', math.random(1500, 3000), 1)
end

function mob7451_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7451_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7451_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7451, 1, 'mob7451_Action')
RegisterUnitEvent(7451, 2, 'mob7451_Leave')
RegisterUnitEvent(7451, 3, 'mob7451_Kill')
RegisterUnitEvent(7451, 4, 'mob7451_Die')
